<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:appcommons="http://www.fabsoft.cesupa.br/appcommons">

    <rich:modalPanel autosized="true" styleClass="window"
                     onshow="setFocusAtElement('help-window-options:close-related-help-topics-window-button')"
                     id="related-help-topics-window" minWidth="550" minHeight="100">
        <f:facet name="header">
            <h:panelGroup>
                #{words.Help} - ${pagetitle}
            </h:panelGroup>
        </f:facet>
        <f:facet name="controls">
            <h:panelGroup>
                <h:form>
                    <h:commandLink title="#{tooltipmessages.CloseWindow}">
                        <h:graphicImage alt="#{altmessages.CloseWindow}"
                                        value="/images/icons/close-16x16.gif"/>
                        <rich:componentControl for="related-help-topics-window"
                                               attachTo="hide-related-help-topics-window-link"
                                               operation="hide" event="onclick"/>
                    </h:commandLink>
                </h:form>
            </h:panelGroup>
        </f:facet>

        <h:graphicImage height="48" width="48" url="/images/icons/help-48x48.gif"
                        class="window-main-icon"/>
        <div class="window-text">
            <span class="window-main-message">
                #{messages.RelatedHelpTopics}
            </span>
            <rich:separator height="1"/>
            <br/>
            <ul class="styled-list">
                <ui:insert name="relatedhelptopics">
                    #{messages.NoHelp}
                </ui:insert>
            </ul>
            <br /><br />
            <rich:separator height="1"/>
        </div>
        <br />
        <div class="buttons" style="float:right;">
            <h:form id="help-window-options">
                <h:commandLink id="close-related-help-topics-window-button"
                                class="primarybutton"
                               title="#{tooltipmessages.CloseWindow}">
                    #{words.Close}
                    <rich:componentControl for="related-help-topics-window"
                                           attachTo="help-window-options:close-related-help-topics-window-button"
                                           operation="hide" event="onclick"/>
                </h:commandLink>
            </h:form>
        </div>
    </rich:modalPanel>
</ui:composition>